package com.uniview.service;

import com.uniview.entity.po.ServiceOrdersLogs;

import java.util.List;

/**
 * 工单日志接口
 * @author Qingtian Lei
 *
 */
public interface ServiceOrdersLogsService {

	/**
	 * 保存工单处理日志
	 * @param sol
	 * @return
	 */
	Integer saveOrderLogs(ServiceOrdersLogs sol) throws Exception;

	/**
	 * 获取工单处理日志
	 */
	List<ServiceOrdersLogs> findLogByOrderId(Integer orderId) throws Exception;
	
	
	ServiceOrdersLogs findApplyLogsByCreator(Integer orderId) throws Exception;
	
	ServiceOrdersLogs findLastUrgeOrderLogByOrderId(Integer orderId) throws Exception;
	
	/**
	 * 根据ID,查询最近的工单日志
	 * @param orderId
	 * @return
	 * @throws Exception
	 */
	ServiceOrdersLogs findLatestLogByOrderId(Integer orderId) throws Exception;
}
